package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IAlertRuleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时校验报警规则任务
 *
 * @Author mr.wu
 * @Date 2025-10-28 11:26
 */
@Slf4j
@Component
public class AlertRuleFilterJob {

    @Autowired
    private IAlertRuleService alertRuleService;

    /**
     * 过滤报警规则，将符合要求的数据存入报警数据表
     */
    public void alertRuleFilter(){
        log.info("[定时任务-校验报警规则]开始执行");
        alertRuleService.alertRuleFilter();
        log.info("[定时任务-校验报警规则]执行完毕");
    }
}
